#!/usr/bin/env python 
# -*- coding:utf-8 -*-
"""
@Time:2021/12/11 3:43 下午"
@Author:lydia_liu"
@File:main_page.py
@function:
"""

from selenium.webdriver.common.by import By

from po_master.page_object.base_page import BasePage
from po_master.page_object.contact_page import ContactPage

#首页


class MainPage(BasePage):
    _BTN_CONTACT = (By.ID, 'menu_contacts')


    def click_contactlink(self):
        print('点击通讯录进入到通讯录页面')
        self.onclick(*self._BTN_CONTACT)
        # self.driver.find_element(*self._BTN_CONTACT).click()

        return ContactPage(self.driver)